﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using MS.InformationManagement.Presenter.Support;

namespace MS.InformationManagement.Presenter.ActasDeAnulacion
{
    public class ActasDeAnulacionPresenter : BasePresenter<IActasDeAnulacionView>
    {
        #region Constructor

        public ActasDeAnulacionPresenter(IActasDeAnulacionView view) : base(view) { }

        #endregion

        #region Public Methods

        public void HandleLoad()
        {
            int totalRecords;
            View.radicadosAnulados = MS.InformationManagement.BLL.ActasDeAnulacion.ActasDeAnulacion.getRadicadosAnulados(View.PageIndex, View.PageSize, out totalRecords, false);
            View.TotalRecords = totalRecords;
            View.Show();
        }


        public void GenerarActas()
        {
            int totalRecords;
            View.result = MS.InformationManagement.BLL.ActasDeAnulacion.ActasDeAnulacion.GenerarActaAnulacion(View.PageIndex, View.PageSize, out totalRecords);
            View.Result();
        }

        #endregion
    }
}
